import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
testcase = "dbshop008_销售管理发货单"
# 1.点击销售管理支付记录。
ff = openBrowser(urlAdmin)
DBshopLoginAdmin(ff)
DBshopEnterMenu2(ff, "销售管理", "支付记录")
# 2,点击"订单号"按钮，查看订单已发货还是未发货。
ff.find_element_by_xpath('//a[@href="/dbshop/admin/orders/Orders/edit/order_id/15"]').click()
try:
    ff.find_element_by_xpath('//td[text()="已发货"]').is_displayed()
    writeLog("%s 测试通过" % (testcase))
except:
    writeLog("%s 测试失败" % (testcase))
    getPhoto(ff)
ff.quit()